package org.example;

import org.example.ba06.SomeService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Apptest02 {
    @Test
    public void test01(){
        ApplicationContext ap = new ClassPathXmlApplicationContext("ApplicationContext.xml");
        SomeService service = (SomeService)ap.getBean("service1");
        System.out.println(service);
       service.doThird();

    }
}
